package com.wh.hotel.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 酒店房型关系表
 * </p>
 *
 * @author 
 * @since 2023-05-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hotel_room_type_relation")
public class HotelRoomTypeRelation extends Model<HotelRoomTypeRelation> {

    private static final long serialVersionUID=1L;

    /**
     * 房型关系ID
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    private Date createDt;

    /**
     * 更新时间
     */
    private Date updateDt;

    /**
     * 房型id
     */
    private Long roomTypeId;

    /**
     * 酒店id
     */
    private Long hotelId;

    /**
     * 房型状态, 1=正常, 2=下架
     */
    private Integer relationStatus;

    /**
     * 房型基准价, 单位：分
     */
    private Integer basePrice;

    /**
     * 物理库存
     */
    private Integer physicalStock;

    /**
     * 一份早餐的价格,单位：分
     */
    private Integer breakfastPrice;


    public static final String ID = "id";

    public static final String CREATE_DT = "create_dt";

    public static final String UPDATE_DT = "update_dt";

    public static final String ROOM_TYPE_ID = "room_type_id";

    public static final String HOTEL_ID = "hotel_id";

    public static final String RELATION_STATUS = "relation_status";

    public static final String BASE_PRICE = "base_price";

    public static final String PHYSICAL_STOCK = "physical_stock";

    public static final String BREAKFAST_PRICE = "breakfast_price";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
